# 自动打包
rm -rf *.tgz
charts=$(find .|grep Chart.yaml)
for chart in $charts
do
echo "Charts:${chart}"
# dirs of current chart,such as drill and spark
dir_name=$(echo $chart|awk -F"/" '{print $2}')
echo "dir name: $dir_name"
#echo $chart|awk -F"/C" '{print $1}'
echo $dir_name| xargs -t -I {} helm package {}

done

helm repo index .  --url https://gitee.com/gsunwu/BigDataHemlRepo/raw/master/
#echo $chart
#https://gitee.com/gsunwu/BigDataHemlRepo/raw/master/apache-phoenix-0.2.4.tgz